import React from 'react'
import LayoutIndex from '@/Layout/index';
import ProtectedRoute from '@/componment/ProtectedRoute/ProtectedRoute'
import LazyLoad from '@/router/utils/lazyLoad';

const Article = [
  {
    element:<LayoutIndex/>,
    children:[
      {
        path:'/sys/article',
        element:(
                  <ProtectedRoute 
                    element={LazyLoad(React.lazy(() => import('@/pages/System/index')))}
                  />
                )
      },
      {
        path:'/sys/article/list',
        element:(
                  <ProtectedRoute 
                    element={LazyLoad(React.lazy(() => import('@/pages/Article/list')))}
                  />
                )
      },
      {
        path:'/sys/article/add',
        element:(
                  <ProtectedRoute 
                    element={LazyLoad(React.lazy(() => import('@/pages/Article/add')))}
                  />
                )
      },
    ]
  }
]

export default Article;